import router, { setupRouter } from '@/router/index';
import { setPlugins } from '@/plugins/index';
import { createApp } from 'vue';
import '@/styles/global.scss';
import App from './App.vue';

async function bootstrap() {
  const app = createApp(App);
  setPlugins(app);
  setupRouter(app);

  // 路由挂载完成
  await router.isReady();
  app.mount('#app');
}
bootstrap();
